package cn.cdeden.knowledge.domain.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
* @author Chen
* @date 2022-09-06
*/
@Data
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class TeamMemberDto implements Serializable {
    private static final long serialVersionUID = 1L;

//    @ApiModelProperty(value = "编号")
    @TableId(type= IdType.AUTO)
    private Long id;

//    @ApiModelProperty(value = "团队id")
    private Integer teamId;

//    @ApiModelProperty(value = "角色编号")
    private String roleId;

//    @ApiModelProperty(value = "角色名称")
    private String roleName;

//    @ApiModelProperty(value = "角色等级")
    private Integer roleRank;

//    @ApiModelProperty(value = "对象id")
    private Long objectId;

//    @ApiModelProperty(value = "对象类型")
    private Integer objectType;

//    @ApiModelProperty(value = "对象名称")
    private String objectName;

////    @ApiModelProperty(value = "用户姓名")
//    @Translation(type = TransConstant.USER_ID_TO_USER_NICK_NAME)
//    private String nickName;

//    @ApiModelProperty(value = "部门路径")
    private String ownerDept;

//    @ApiModelProperty(value = "创建编号")
    @TableField(fill= FieldFill.INSERT)
    private String createId;

//    @ApiModelProperty(value = "创建日期")
    @TableField(fill= FieldFill.INSERT)
    private Date createTime;

//    @ApiModelProperty(value = "更新编号")
    @TableField(fill= FieldFill.INSERT_UPDATE)
    private String updateId;

//    @ApiModelProperty(value = "更新时间")
    @TableField(fill= FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
